{{#if (and (eq step 1) isK3sCluster)}}
  <AccordionList @showExpandAll={{false}} as |al expandFn|>
    <AccordionListItem
      @title={{t "k3sClusterInfo.title"}}
      @detail={{t "k3sClusterInfo.detail"}}
      @expandAll={{al.expandAll}}
      @everExpanded={{true}}
      @expandOnInit={{true}}
      @expanded={{true}}
      @expand={{action expandFn}}
    >
      <K3sClusterInfo
        @cluster={{model.cluster}}
        @originalCluster={{model.originalCluster}}
        @editing={{isEdit}}
      />
    </AccordionListItem>

    <!-- not removing because when we can edit the config this section will come back -->
    <!-- <AccordionListItem
         @title={{t "k3sClusterInfo.nodeInfo.title"}}
         @detail={{t "k3sClusterInfo.nodeInfo.detail"}}
         @expandAll={{al.expandAll}}
         @everExpanded={{true}}
         @expandOnInit={{true}}
         @expanded={{true}}
         @expand={{action expandFn}}
         >
         <div class="row">
         <div class="col span-6">
         <label class="acc-label" for="master-node-select">
         {{t "k3sClusterInfo.nodeInfo.label"}}
         </label>
         {{new-select
                       id="master-node-select"
                       classNames="form-control"
                       optionValuePath="id"
                       optionLabelPath="displayName"
                       value=nodeInfoId
                       content=nodesOptions
                       action=(action "setActiveNodeForInfo")
                       prompt="k3sClusterInfo.nodeInfo.selectPrompt"
                       localizedPrompt=true
                       }}
         </div>
         {{#if nodeForInfo}}
         <div class="col span-12">
         <K3sNodeArgs @node={{nodeForInfo}} />
         <K3sNodeEnvVar @node={{nodeForInfo}} />
         </div>
         {{/if}}
         </div>
         </AccordionListItem> -->
  </AccordionList>

  <TopErrors @errors={{errors}} />
  <TopErrors @errors={{otherErrors}} />
  <TopErrors @errors={{clusterErrors}} />
  <SaveCancel
    @save={{action "driverSave"}}
    @editing={{isEdit}}
    @cancel={{action "close"}}
  />
{{else if (and (eq step 2) (eq originalCluster.state "pending"))}}
  {{#banner-message color="bg-info m-0"}}
    <div class="mt-20">
      {{t "clusterNew.import.command.instructionsAdminRole"
        appName=settings.appName
        htmlSafe=true
      }}
    </div>

    <div class="copy-pre mt-20 mb-20">
      {{#if loading}}
        <div class="text-center">
          <i class="icon icon-spinner icon-spin"></i> {{t "generic.loading"}}
        </div>
      {{else}}
        {{copy-to-clipboard
          clipboardText=clusterAdmin
          tagName="div"
          classNames="copy-to-pre"
        }}
        <pre style="font-size: 14px;">{{clusterAdmin}}</pre>
      {{/if}}
    </div>
  {{/banner-message}}

  <div class="mt-20">
    {{t "clusterNew.import.command.instructions"
      appName=settings.appName
      docsBase=settings.docsBase
      htmlSafe=true
    }}
  </div>

  <div class="copy-pre mt-20 mb-20">
    {{#if loading}}
      <div class="text-center">
        <i class="icon icon-spinner icon-spin"></i> {{t "generic.loading"}}
      </div>
    {{else}}
      {{copy-to-clipboard
        clipboardText=token.command
        tagName="div"
        classNames="copy-to-pre"
      }}
      <pre id="registration-command" style="font-size: 14px;">{{token.command}}</pre>
    {{/if}}
  </div>

  <div class="mt-20">
    {{t "clusterNew.import.command.instructionsInsecure"
      appName=settings.appName
      docsBase=settings.docsBase
      htmlSafe=true
    }}
  </div>

  <div class="copy-pre mt-20 mb-20">
    {{#if loading}}
      <div class="text-center">
        <i class="icon icon-spinner icon-spin"></i> {{t "generic.loading"}}
      </div>
    {{else}}
      {{copy-to-clipboard
        clipboardText=token.insecureCommand
        tagName="div"
        classNames="copy-to-pre"
      }}
      <pre id="registration-command" style="font-size: 14px;">{{token.insecureCommand}}</pre>
    {{/if}}
  </div>

  {{#if isEdit}}
    {{top-errors errors=otherErrors}}
    {{top-errors errors=clusterErrors}}
    {{save-cancel
      save=(action "driverSave")
      editing=true
      cancel=(action "close")
    }}
  {{else}}
    <div class="footer-actions">
      <button {{action "close"}} class="btn bg-primary">
        {{t "clusterNew.rke.done"}}
      </button>
    </div>
  {{/if}}
{{else}}
  {{top-errors errors=errors}}
  {{top-errors errors=otherErrors}}
  {{top-errors errors=clusterErrors}}
  {{save-cancel
    save=(action "driverSave")
    editing=isEdit
    cancel=(action "close")
  }}
{{/if}}
